 <div id="infobox-fullwidth" class="margin-left">
 
	<table>
		<thead>
			<tr>
				<th>Danh mục</th>
				<th>Tên người hỏi</th> 
				<th>Nội dung câu hỏi</th>
				<th>Tình trạng</th>
				<th>Ngày tạo</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($list_question as $question):?> 
			<tr> 
				<td><?php if($category != null):?><?php foreach($category as $row):?>
					<?php if($row->id == $question->cateid):?>
						<?php echo $row->catename;?>
					<?php endif;?>
				<?php endforeach;?>
				<?php endif;?>
				</td>
				<td><?php echo $question->fullname?></td>
				<td><?php echo $question->content_question?></td>
				<td><?php if($question->status == 1):?>
						Cho phép
					<?php elseif($question->status == 0):?>
						<a href="<?php echo site_url('admincp/updatestatus_question/'.$question->id);?>">Kích hoạt</a>
					<?php else:?>
						
					<?php endif;?>
				</td>
				<td><?php echo $question->datecreate?></td>
				<td><a class="fancybox fancybox.iframe" href="<?php echo site_url('admincp/reply_now/'.$question->id);?>">Trả lời ngay</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="<?php echo site_url('admincp/del_question/'.$question->id);?>">xóa</a>
				</td>
			</tr>
			<?php endforeach;?>
			 
		</tbody>
	</table>
</div> 